package com.baidu.zhang.database;

import android.net.Uri;
import android.provider.BaseColumns;

public class SqliteConstants {
	
	public static final String AUTHORITY="com.baidu.zhang";
	
	public static final String TAG="SqliteConstants";
	
	public static final String DATABASE_NAME="zhang.db";
	
	public static final int VERSION=1;
	
	private SqliteConstants(){}
	
	/*
	 * table contract
	 */
	
	public static final class Wxl implements BaseColumns{
		private Wxl(){}
		
		public static final String TABLE_NAME="wxl";
		
		private static final String SCHEME="content://";
		
		private static final String PATH_WXL="/wxl";
		
		public static final String PATH_WXL_ID="/wxl/";
		
		public static final int WXL_ID_PATH_POSITION=1;
		
		public static final String PATH_LIVE_FOLDER="/live_folders/notes";
		
		public static final Uri CONTENT_URI=Uri.parse(SCHEME+AUTHORITY+PATH_WXL);
		
		public static final Uri CONTENT_ID_URI_BASE=Uri.parse(SCHEME+AUTHORITY+PATH_WXL_ID);
		
		public static final Uri LIVE_FOLDER_URI=Uri.parse(SCHEME+AUTHORITY+PATH_LIVE_FOLDER);
		
		/*
		 * column definitions 
		 */
		
		public static final String COLUME_NAME_TITLE="title";
		
		public static final String COLUME_NAME_WXL="wxl";
		
		public static final String COLUMN_NAME_CREATE_DATE="created";
		
		public static final String COLUMN_NAME_MODIFICATION_DATE="modified";
	}
	
	public static final class Zly implements BaseColumns{
		
		private Zly(){}
		
		public static final String TABLE_NAME="zly";
		
		private static final String SCHEME="content://";
		
		private static final String PATH_WXL="/wxl";
		
		public static final String PATH_WXL_ID="/wxl/";
		
		public static final int WXL_ID_PATH_POSITION=1;
		
		public static final String PATH_LIVE_FOLDER="/live_folders/notes";
		
		public static final Uri CONTENT_URI=Uri.parse(SCHEME+AUTHORITY+PATH_WXL);
		
		public static final Uri CONTENT_ID_URI_BASE=Uri.parse(SCHEME+AUTHORITY+PATH_WXL_ID);
		
		public static final Uri LIVE_FOLDER_URI=Uri.parse(SCHEME+AUTHORITY+PATH_LIVE_FOLDER);
		
		/*
		 * column definitions 
		 */
		
		public static final String COLUME_NAME_TITLE="title";
		
		public static final String COLUME_NAME_WXL="wxl";
		
		public static final String COLUMN_NAME_CREATE_DATE="created";
		
		public static final String COLUMN_NAME_MODIFICATION_DATE="modified";
		
	}
}
